#import "IlluminateMelodyView.h"


@implementation IlluminateMelodyView



- (void)setGrumpyXenial:(IlluminateMelodyModel *)grumpyXenial {
	_grumpyXenial = grumpyXenial;

	//: 配置cell的UI

	self.driftBrillianceMelodicLabel.text = grumpyXenial.melancholyJoyousVortex ? @"YES" : @"NO";

	self.apexLabel.text = [grumpyXenial.alchemyCourageousTranquility stringValue];



}
- (UITextView *)yardCactusGracefulTextView {
	if (!_yardCactusGracefulTextView) {
	
        _yardCactusGracefulTextView = [[UITextView alloc] initWithFrame:CGRectZero];
        _yardCactusGracefulTextView.frame = CGRectMake(38, 9, 197, 133);
	}
	return _yardCactusGracefulTextView;
}

- (UIView *)laughterSolarView {
	if (!_laughterSolarView) {
	
        _laughterSolarView = [[UIView alloc] initWithFrame:CGRectZero];
	}
	return _laughterSolarView;
}

//: 设置self.horizonBlossomImageView的圆角
- (void)keenArcane:(UIImageView *)quench whimsy:(CGFloat)graceful {
	quench.layer.cornerRadius = graceful;
	quench.layer.masksToBounds = YES;
}

- (UITextField *)vividHazeTextField {
	if (!_vividHazeTextField) {
	
        _vividHazeTextField = [UITextField new];
        _vividHazeTextField.frame = CGRectMake(45, 23, 40, 134);
	}
	return _vividHazeTextField;
}

- (UIImageView *)swoopImageView {
	if (!_swoopImageView) {
	
        _swoopImageView = [[UIImageView alloc] init];
        _swoopImageView.contentMode = UIViewContentModeScaleAspectFill;
        _swoopImageView.clipsToBounds = YES;
        _swoopImageView.layer.cornerRadius = 14;
        _swoopImageView.layer.masksToBounds = YES;
        _swoopImageView.frame = CGRectMake(42, 38, 140, 155);
        UIImage *hologramEnchantingBreeze = [UIImage imageNamed:@"images/image_7.png"];
        if (hologramEnchantingBreeze) {
	        _swoopImageView.image = hologramEnchantingBreeze;
        }
	}
	return _swoopImageView;
}

- (UITextField *)nebulaCascadeHopeTextField {
	if (!_nebulaCascadeHopeTextField) {
	
        _nebulaCascadeHopeTextField = [[UITextField alloc] initWithFrame:CGRectZero];
        _nebulaCascadeHopeTextField.size = CGSizeMake(130, 45);
        _nebulaCascadeHopeTextField.left = 13;
        _nebulaCascadeHopeTextField.top = 38;
	}
	return _nebulaCascadeHopeTextField;
}

- (void)forestNebulaVolatileLayout {
	//: 描述_0
	[self addSubview:self.yardCactusGracefulTextView];


    //: 描述_1
    self.glistenTextView = [[UITextView alloc] init];
    [self addSubview:self.glistenTextView];
	[self.glistenTextView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(78);
		make.height.mas_equalTo(166);
	}];

	//: 描述_2
	[self addSubview:self.laughterSolarView];
	[self.laughterSolarView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(146);
		make.height.mas_equalTo(136);
		make.top.equalTo(@(28));
	}];


    //: 描述_3
    self.driftBrillianceMelodicLabel = [UILabel new];
    self.driftBrillianceMelodicLabel.size = CGSizeMake(70, 70);
    self.driftBrillianceMelodicLabel.left = 38;
    self.driftBrillianceMelodicLabel.top = 42;
    self.driftBrillianceMelodicLabel.text = @"label_3";
    self.driftBrillianceMelodicLabel.font = [UIFont systemFontOfSize:16 weight:UIFontWeightBold];
    self.driftBrillianceMelodicLabel.textColor = [UIColor colorWithRed:39/255.0 green:47/255.0 blue:195/255.0 alpha:0.8];
    self.driftBrillianceMelodicLabel.textAlignment = NSTextAlignmentLeft;
    //: 不用理会的骚操作 = self.driftBrillianceMelodicLabel.numberOfLines = 1;
    NSInteger amber = 1;
    if (amber>36 && amber < 3475) {
	    amber = 60;
    }
    self.driftBrillianceMelodicLabel.numberOfLines = amber;
    [self addSubview:self.driftBrillianceMelodicLabel];


    //: 描述_4
    UILabel *dazzle = [[UILabel alloc] initWithFrame:CGRectZero];
    dazzle.frame = CGRectMake(8, 22, 111, 198);
    dazzle.text = @"label_4";
    dazzle.font = [UIFont systemFontOfSize:15 weight:UIFontWeightBold];
    dazzle.textColor = [UIColor colorWithRed:159/255.0 green:234/255.0 blue:96/255.0 alpha:1.0];
    dazzle.textAlignment = NSTextAlignmentLeft;
    dazzle.numberOfLines = 3;
    self.apexLabel = dazzle;
    [self addSubview:dazzle];


    //: 描述_5
    self.horizonBlossomImageView = [[UIImageView alloc] initWithFrame:CGRectZero];
    self.horizonBlossomImageView.contentMode = UIViewContentModeScaleAspectFill;
    self.horizonBlossomImageView.clipsToBounds = YES;
    //: UIImageView的骚操作 充数
    [self keenArcane:self.horizonBlossomImageView whimsy:8];
    UIImage *navigateZipperGrasp = [UIImage imageNamed:@"images/image_5.png"];
    if (navigateZipperGrasp) {
	    self.horizonBlossomImageView.image = navigateZipperGrasp;
    }
    [self addSubview:self.horizonBlossomImageView];
	[self.horizonBlossomImageView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(56);
		make.height.mas_equalTo(179);
		make.top.equalTo(@(14));
	}];

	//: 描述_6
	[self addSubview:self.vividHazeTextField];

	//: 描述_7
	[self addSubview:self.swoopImageView];

	//: 描述_8
	[self addSubview:self.nebulaCascadeHopeTextField];
}


@end